package com.wen.common;

import com.wen.common.constant.MsgCode;

import java.io.Serializable;

/**
 * 公用返回信息对象
 */
public class ResultDto<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private int code;
    private String message;

    /**
     * 返回结果
     */
    private T data;

    public ResultDto() {
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
